<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>通讯详细内容</title>

<style type="text/css">
<!--
.STYLE1 {font-size: 50px}
-->
</style>
</head>

<body>
<?php
error_reporting(E_ALL ^ E_DEPRECATED);
$search=$_POST['search'];
//echo $search;
$link = mysql_connect('localhost','root','xbsmpasswd') or die(mysql_error());// 建立连接
mysql_select_db('wechat',$link);// 选择数据库
mysql_query('set names utf8');// 设定连接编码
$sql="select * from mail_list where name like '$search'";
$rs=mysql_query($sql);
$rows=mysql_fetch_assoc($rs);
//print_r($rows);


?>

<center>

<form id="form1" name="form1" method="post" action="modify2.php">
  <p  style="font-size:24px;color:black;">通讯详细内容</p><br />
  
    
      <span  style="font-size:24px;color:black;"> 姓名：</span>
      <label>
        <input name="name" size="30" type="text" id="name" value="<?php echo $rows['name']?>">
      </label>
    
    <br /><br />
      电话号码：
      <label>
        <input name="phone" type="text" id="phone" value="<?php echo $rows['phone']?>">
      </label>

    <br /><br />
    职位：
    <label>
        <input name="position" type="text" id="position" value="<?php echo $rows['position']?>">
    </label>

    <br /><br />
    部门：
    <label>
        <input name="department" type="text" id="department" value="<?php echo $rows['department']?>">
    </label>

    <br /><br />
    板块：
    <label>
        <input name="plate" type="text" id="plate" value="<?php echo $rows['plate']?>">
    </label>


  <p>&nbsp;</p>
  
<input type="button" name="button2" value="返回" onClick="location.href='mail_list.php'" />


<p>&nbsp;</p>
</form>
</center>
</body>
</html>